package com.itany.book.service.impl;

import com.github.pagehelper.PageInfo;
import com.itany.book.service.SupplierService;
import com.itany.mapper.SupplierMapper;
import com.itany.pojo.Supplier;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class SupplierServiceImpl implements SupplierService {
    @Autowired
    private SupplierMapper supplierMapper;

    @Override
    public PageInfo<Supplier> findSupplierAll(Integer page, Integer rows) {
        List<Supplier> suppliers = supplierMapper.selectSupplierAll();
        PageInfo<Supplier> pageInfo = new PageInfo<>(suppliers);
        return pageInfo;
    }
}
